package com.example.service;

import com.example.pojo.measuringToolChecklistPojo;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

public interface measuringToolChecklistService {
    //查询所有数据
    List<measuringToolChecklistPojo> queryOneField(Map<String,Object> map);

    //根据id编辑某一行数据
    void editOneById(measuringToolChecklistPojo measuringToolChecklistPojo);


    //对一个字段，从老值更改为新值
    void editByField(String fieldName, String old, String newData);

    //查询点检时间及编号
    List<measuringToolChecklistPojo> queryTimeAndNumber(LocalDateTime startTime, LocalDateTime endTime, String numberUse);

    //第一步：向点检记录中插入一行
    void insertOne(measuringToolChecklistPojo pojo);

    //查询点检记录表中编号及产生时间为目标值的数据
    List<measuringToolChecklistPojo> queryTimeNumber(Map<String, Object> map);

    //把当日点检的所有记录调出来
    List<measuringToolChecklistPojo> queryBetweenTwoTime(String fieldName, LocalDateTime startTime, LocalDateTime endTime);
}
